package com.pcbly.web.business.workflow;

import java.util.List;

import com.pcbly.web.bean.workflow.WorkflowStepBean;
import com.pcbly.web.business.BaseService;

public interface WorkflowStepService extends BaseService<WorkflowStepBean> {
	WorkflowStepBean findWorkflowStepBeanByTempIdAndStepName(String templateId,
			String name) throws Exception;

	void createWorkflowStepBean(WorkflowStepBean bean) throws Exception;

	void updateWorkflowStepBean(WorkflowStepBean bean) throws Exception;

	WorkflowStepBean findById(String id) throws Exception;

	void deleteWorkflowStepBean(String id) throws Exception;

	List<WorkflowStepBean> findWorkflowStepBeanByTemplateId(String templateId)
			throws Exception;

	List<WorkflowStepBean> findWorkflowStepBeanByTIdAndIndex(String templateId,
			String index, boolean equal) throws Exception;

}
